package com.xiaozhu.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author 朱慧军
 * @version 1.0
 *
 *     secret-key: xiaozhu
 *     ttl: 7200000
 *     token-name: token
 */

@Component
@Data
@ConfigurationProperties(prefix = "com.xiaozhu.jwt")
public class JwtProperties {

    private String SecretKey;
    private long Ttl;
    private String TokenName;
}
